package serverdto

import (
	"time"
	"xr-game-server/core/migrate"
)

type ServerDto struct {
	migrate.OneModel
	Name     string     `gorm:"comment:名称" json:"name"`
	Status   uint8      `gorm:"default:1;comment:状态" json:"status"`
	ZoneId   uint64     `gorm:"comment:所属区" json:"zoneId"`
	Remark   string     `gorm:"comment:备注" json:"remark"`
	OpenTime *time.Time `gorm:"comment:开放时间" json:"openTime"`
	ZoneName string     `gorm:"comment:所属区名称" json:"zoneName"`
}

func NewServerDto() *ServerDto {
	return &ServerDto{}
}
